C program which allows integer input only